import { createRouter, createWebHashHistory } from 'vue-router'


import { beforeEach, afterEach } from './gurad.ts'
import {AppRoutes}  from './routes.ts'



const router = createRouter({
    history: createWebHashHistory(),
    routes:AppRoutes
})



export default router


//
beforeEach()
afterEach()